package cn.by.wms;

import cn.hutool.core.thread.ThreadUtil;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("cn.by.wms.dao")
@ServletComponentScan
@Slf4j
//把spring的代理暴露出来
@EnableAspectJAutoProxy(exposeProxy = true)
//开启事务
@EnableTransactionManagement
public class App {

    public static void main(String[] args) {

        SpringApplication.run(App.class, args);



    }

}
